function [tNew] = changeValues (t,prior, post)
[~,len] = size (t);
tNew = t;
for i = 1:len
    for j = 1:len
        if ((i == j) || (t(i,j) == prior))
            tNew(i,j) = post;
        end
    end
end
